package com.cmc.cloud.cmclink.doc.entity;

import lombok.*;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.*;
import com.cmes.framework.mybatis.core.dataobject.BaseDO;

/**
 * bsa （base space Allocation） 维护 DO
 *
 * @author 招商轮船-管理员
 */
@TableName("doc_voyage_bsa")
@KeySequence("doc_voyage_bsa_seq")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class VoyageBsaDO extends BaseDO {

    /**
     * 主键
     */
    @TableId
    private Long id;
    /**
     * 模板标记
     */
    private Boolean isTemplate;
    /**
     * 进出口类型
     */
    private String exImType;
    /**
     * 航线代码
     */
    private String laneCode;
    /**
     * 船舶代码
     */
    private String vesselCode;
    /**
     * 航次
     */
    private String voyage;
    /**
     * 港口代码
     */
    private String polCodes;
    /**
     * bsa箱量teu
     */
    @TableField(updateStrategy = FieldStrategy.ALWAYS)
    private Integer bsaTeu;
    /**
     * bsa重量吨
     */
    @TableField(updateStrategy = FieldStrategy.ALWAYS)
    private Integer bsaTons;
    /**
     * 张力teu
     */
    @TableField(updateStrategy = FieldStrategy.ALWAYS)
    private Integer optionTeu;
    /**
     * 张力重量吨
     */
    @TableField(updateStrategy = FieldStrategy.ALWAYS)
    private Integer optionTons;
    /**
     * 冷插数
     */
    @TableField(updateStrategy = FieldStrategy.ALWAYS)
    private Integer rfUnit;
    /**
     * HC（teu
     */
    @TableField(updateStrategy = FieldStrategy.ALWAYS)
    private Integer hcTeu;
    /**
     * 危险品占比teu
     */
    @TableField(updateStrategy = FieldStrategy.ALWAYS)
    private BigDecimal maxDgPercent;
    /**
     * 危险品定额teu
     */
    @TableField(updateStrategy = FieldStrategy.ALWAYS)
    private Integer maxDgTeu;
    /**
     * 全船接载开关
     */
    private String bookingOpenStatus;
    /**
     * 全船接载开关人
     */
    private String openCloseUser;
    /**
     * 全船接载开关时间
     */
    private LocalDateTime openCloseTime;
    /**
     * 备注
     */
    private String remark;
}
